@import '~@alife/aisc-core/purple/scss/index.scss';
@import '~@alife/aone-core/variables/index';

.md-editor {
  &-panel {
    padding: 2px 0 5px;
    background: #fff;
    border: 1px solid $gray-03;
    border-radius: 4px;

    &-textarea {
      padding: 12px;
      border: 0;
      display: block;
      width: 100%;
      height: 100px;
      outline: none;
      resize: none;
      position: relative;
      font-size: 14px;
      &::-webkit-input-placeholder {
        color: $gray-05;
        line-height: 22px;
      }
      &::-moz-input-placeholder {
        color: $gray-05;
        line-height: 22px;
      }
      &::-ms-input-placeholder {
        color: $gray-05;
        line-height: 22px;
      }
      &-tips {
        &.new {
          font-size: 12px;
          color: $gray-06;
          padding: 4px 0 0 4px;
          display: flex;
          justify-content: flex-end;
          border: none;
          .text {
            margin-right: 4px;
            font-size: 12px;
          }
        }
      }
    }
    &-preview {
      padding: 0 12px;
      height: 100px;
      overflow: auto;
      word-break: break-word;
    }
  }
  &-btn {
    margin: 12px 12px 0 4px;
  }
  .next-tabs-content {
    padding: 0 !important;
  }
  &.md-editor-small {
    .md-editor-panel {
      padding: 0;
      &-textarea {
        font-size: 14px;
        &-tips {
          padding-bottom: 2px;
          padding-left: 8px;
        }
      }
      &-preview {
        max-height: 100px;
        overflow: auto;
      }
    }
  }

  .extra-options-area {
    float: right;
  }

  .comment-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    &.flex-start {
      justify-content: flex-start;
    }
  }
}
